<?xml version="1.0" encoding="utf-8"?>
<openerp>
	<data>
		<record id="view_summary_open_po_report" model="ir.ui.view">
			<field name="name">view.summary.open.po.report</field>
			<field name="model">summary.open.po.report</field>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<form string="Open PO Report">
					<group>
						<notebook tabpos="up" colspan="4">
							<page string="Filters" name="filters">
		                        <group string="">
		                        	<field name="report_type"/>
		                        	<field name="date_selection" />
									<field name="date_from" attrs="{'invisible': [('date_selection','!=','date_sel')]}"/>
									<field name="date_to" attrs="{'invisible': [('date_selection','!=','date_sel')]}"/>
		                        </group>
							</page>
						</notebook>
					</group>
				<footer>
                    <button name="create_vat" string="Print as PDF" type="object" default_focus="1" class="oe_highlight"/>
                    or
	                <button name="print_report" string="Print as XLS" type="object" class="oe_highlight" context="{'xls_output':1}"/>
                    or		 
                    <button string="Cancel" class="oe_link" special="cancel"/>
                </footer>
				</form>
			</field>
		</record>

		<record id="action_summary_open_po_report" model="ir.actions.act_window">
			<field name="name">Open PO Report</field>
			<field name="type">ir.actions.act_window</field>
			<field name="res_model">summary.open.po.report</field>
			<field name="view_type">form</field>
			<field name="view_mode">form</field>
			<field name="target">new</field>
			<field name="help">This menu print Summary Open PO Report.</field>
		</record>

		<menuitem name="Open PO Report" parent="menu_summary_open_po"
			action="action_summary_open_po_report" id="menu_summary_report" sequence="3"/>

	</data>
</openerp>
